<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_URL, 'http://localhost/crystalmonitoring/index.php');
$post_array = array(
    'act'=>'upload',
    "mac" => "D850E6B83242",
    "file" => "@imgo.jpg"
);

curl_setopt($ch, CURLOPT_POSTFIELDS, $post_array);
$response = curl_exec($ch);

?>


